import request from '@/utils/request'

// 查询短信群发任务接收者列表
export function listBulkTaskRecipient(query) {
  return request({
    url: '/Sms/bulkTaskRecipient/list',
    method: 'get',
    params: query
  })
}

// 查询短信群发任务接收者详细
export function getBulkTaskRecipient(recipientId) {
  return request({
    url: '/Sms/bulkTaskRecipient/' + recipientId,
    method: 'get'
  })
}

// 新增短信群发任务接收者
export function addBulkTaskRecipient(data) {
  return request({
    url: '/Sms/bulkTaskRecipient',
    method: 'post',
    data: data
  })
}

// 修改短信群发任务接收者
export function updateBulkTaskRecipient(data) {
  return request({
    url: '/Sms/bulkTaskRecipient',
    method: 'put',
    data: data
  })
}
//cesye

// 删除短信群发任务接收者
export function delBulkTaskRecipient(recipientId) {
  return request({
    url: '/Sms/bulkTaskRecipient/' + recipientId,
    method: 'delete'
  })
}
